<?php
/**
 * 基础设置
 */
namespace App;
defined('IN_IA') or exit('Access Denied');

class WeChat extends Action
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 指定用户是否关注了公众号
     * @param int uid 用户id
     */
    public function testAttention()
    {
        $_fans = $this->uidToFans($this->_gpc["uid"],array("follow"));
        $this->_result = array("status"=>"success","data"=>$_fans["follow"]);
        $this->result($this->_result);
    }

    /**
     * 获取关注公众后的二维码
     */
    public function getWxAttentionQrcode()
    {
        $this->_result = array("status"=>"success","data"=>$this->_w["uniaccount"]["qrcode"]);
        $this->result($this->_result);
    }


}